Repository navigation
fix: withhold telemetry counts under ten, zero included - #74
Merged
Merged
Conversation
A first-party telemetry count from 0 to 9 is withheld. The collector stores it as NULL, never as the column's old DEFAULT 0. /api/telemetry keeps the row, serves null, and states the rule in a withheld descriptor. The dashboard reads "fewer than 10" where the number would be. A withheld cell is never shown as 0, never dropped, never sorted as if it held a value, and never taken into a change figure or the top-version pick. The summary publishes a withheld count as null, and the badge and the collector's log line carry floored figures only. The telemetry count columns become nullable. scripts/floor-telemetry-counts.js rebuilds an older store with nullable counts in one transaction, sets every stored count under ten to NULL, and rebuilds the file so no replaced value remains in free pages. setup-database.js and the collector run it on every collection. Run on its own, it also rewrites the summary's telemetry block.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request lands 1 commit in
lib/,pages/,scripts/andtest/.Included
Verified on this exact tree
npm ci --no-audit --no-fund(Node 24.17.0): exit 0, added 205 packagesnode --test --test-concurrency=4 test/*.test.js(19 test files): tests 271, pass 271, fail 0, cancelled 0, skipped 0, todo 0npm run build: exit 0, compiled successfully, static pages 3/3git status --porcelainafter the test and build runs: no outputpackage.jsonscripts: no lint, typecheck or changelog script is definedNot included
None
Closes
None
How to merge
Rebase and merge, so that each change stays its own commit on
main.